#include "cCUIWidget.h"


cCUIWidget::cCUIWidget(void)
{
}


cCUIWidget::~cCUIWidget(void)
{
}

//This will be called by the parent window when it needs its' widgets to update.
void cCUIWidget::paint(cCUIBrush *brush)
{
			glBegin(GL_QUADS);
			//This quad will always resize to fill the full window. It's the base of the window.
			//This is exclusively for windows with no texture.
			glColor3f(100.0f, 0.0f, 0.0f);
			glVertex3f(-0.2f, -0.2f, 0.0f);
			glVertex3f(-0.2f, 0.2f, 0.0f);
			glVertex3f(0.2f, 0.2f, 0.0f);
			glVertex3f(0.2f, -0.2f, 0.0f);
			glEnd();
}

sCUIWidgetSize cCUIWidget::getSize()
{
	sCUIWidgetSize details;

	details.height = widgetDetails.height;
	details.width = widgetDetails.width;

	return details;
}